GtkSwitch: implement clipping
authorMatthias Clasen <mclasen@redhat.com>
Fri, 18 Jul 2014 20:37:18 +0000 (16:37 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 18 Jul 2014 20:37:18 +0000 (16:37 -0400)
So switches can have shadows, too.

https://bugzilla.gnome.org/show_bug.cgi?id=733360

gtk/gtkswitch.c

index 5677fa8b888cd362812a93662b9e69d77c040fa2..9ba4b65b207525d9ae1720c2e38791953aa51548 100644 (file)
@@ -51,6 +51,7 @@
 #include "gtkactionable.h"
 #include "a11y/gtkswitchaccessible.h"
 #include "gtkactionhelper.h"
+#include "gtkwidgetprivate.h"
 
 #include <math.h>
 
@@ -388,6 +389,8 @@ gtk_switch_size_allocate (GtkWidget     *widget,
                             allocation->y,
                             allocation->width,
                             allocation->height);
+
+  _gtk_widget_set_simple_clip (widget);
 }
 
 static void